﻿head.ready(function() {
    // Create namespace System.Data
   
    // Intergrate with Jquery




    System.Data.ProjectNameModel = function() {
        var self = this;
        //

        self.availableProjects = ko.observableArray([]);
        self.selected = ko.observableArray([]);
        //save
        self.save = function(form) {
            alert("Ok");
        };
        self.loadProjectName = function() {
            $.getJSON(BASE_URL + "Listings/Ajax/getProjectname", function(result) {
                self.availableProjects(result.Data);

                $("#project-name").chosen({
                    allow_single_deselect: true
                });
                $("#project-name").removeClass("hide");
            });

        };
    }

 









});
